package components.contorls.superClass
{
    import components.core.UIComponent;

    import flash.display.DisplayObject;

    public class BaseDemo extends UIComponent
    {
        private var _label:String = "Button";

        public function BaseDemo()
        {
            super();
        }

        /***************************************
         *
         * 显示对象声明
         *
         * **************************************/

        public function get labelTF():DisplayObject
        {
            return getChildByName("labelSkin") as DisplayObject;
        }

        /***************************************
         *
         * 验证
         *
         * **************************************/

        protected override function commitProperties():void
        {
            super.commitProperties();
        }

        protected override function measureSizes():Boolean
        {
            return super.measureSizes();
        }


        protected override function updateDisplayList():void
        {
            super.updateDisplayList();
        }

        /***************************************
         *
         * 组件定义
         *
         * **************************************/


        [Inspectable(defaultValue="Button")]
        public function get label():String
        {
            return _label;
        }

        public function set label(value:String):void
        {
            _label = value;
            invalidate();
        }

        /***************************************
         *
         * 其他代码
         *
         * **************************************/

        public override function destroy():void
        {
            super.destroy();
        }
		
		public override function validateNow():void
		{
			super.validateNow();
		}
    }
}